import { Base } from '../../utils/base.js';

class JqList extends Base {
  constructor() {
    super();
  }

  getSearchFor(datarow, callBack) {
    var param = {
      url: 'getSearch?datarow=' + datarow,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getJqlist(styleid1, styleid2, styleid3, styleid4, yeshu, wxcity, wxprovince, latitude, longitude, callBack) {
    var param = {
      url: 'getJqlist?styleid1=' + styleid1 + '&styleid2=' + styleid2 + '&styleid3=' + styleid3 + '&styleid4=' + styleid4 + '&yeshu=' + yeshu + '&wxcity=' + wxcity + '&wxprovince=' + wxprovince + '&latitude=' + latitude + '&longitude=' + longitude,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getShengHuiRow(callBack) {
    var param = {
      url: 'shenghui',
      sCallBack: function (data) {
        //console.log(data);
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

}

export { JqList };